/*
 * Copyright (c) 2005, 2020, Jin Lin All rights reserved.
 * Jin Lin PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 */
package aco.entity.dobject;

import java.util.List;

/**
 * 描述 训练.
 *
 * @author Jin Lin
 * @created 2019 -07-01 21:45:47
 */
public class Trainer {

    /**
     * 训练需要的蚁群.
     */
    private List<Colony> colonies;

    /**
     * 描述 create.
     *
     * @return the long
     * @author Jin Lin
     * @created 2019 -07-01 22:45:21 Length of colonies long.
     */
    public Long lengthOfColonies() {
        return Long.parseLong(getColonies().size() + "");
    }


    //===========================================================================================

    /**
     * Instantiates a new Trainer.
     */
    public Trainer() {
    }

    /**
     * Instantiates a new Trainer.
     *
     * @param colonies the colonies
     */
    public Trainer(List<Colony> colonies) {
        this.colonies = colonies;
    }

    /**
     * 描述 Gets colonies.
     *
     * @return the colonies
     * @author Jin Lin
     * @created 2019 -07-01 22:01:34
     */
    public List<Colony> getColonies() {
        return colonies;
    }

    /**
     * 描述 Sets colonies.
     *
     * @param colonies the colonies
     * @author Jin Lin
     * @created 2019 -07-01 22:01:34
     */
    public void setColonies(List<Colony> colonies) {
        this.colonies = colonies;
    }
}
